﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NbMeterServices.Entity;

[SugarTable("MR_AdjustMeterData", "用水量调整表")]
public class MrAdjustMeterData 
{
    /// <summary>
    /// 雪花Id
    /// </summary>
    [SugarColumn(ColumnName = "Id", ColumnDescription = "主键Id", IsPrimaryKey = true, IsIdentity = true)]
    public long Id { get; set; }

    /// <summary>
    /// 仪表Id
    /// </summary>
    [SugarColumn(ColumnName = "MeterId", ColumnDescription = "仪表Id")]
    public long? MeterId { get; set; }

    /// <summary>
    /// 仪表编号
    /// </summary>
    [SugarColumn(ColumnName = "MeterNo", ColumnDescription = "仪表编号", Length = 32)]
    public string? MeterNo { get; set; }

    /// <summary>
    /// 累计使用量
    /// </summary>
    [SugarColumn(ColumnName = "Used", ColumnDescription = "累计使用量", Length = 8, DecimalDigits = 3)]
    public decimal? Used { get; set; }

    /// <summary>
    /// 天使用量
    /// </summary>
    [SugarColumn(ColumnName = "DayUsed", ColumnDescription = "天使用量", Length = 8, DecimalDigits = 3)]
    public decimal? DayUsed { get; set; }

    /// <summary>
    /// 数据时间
    /// </summary>
    [SugarColumn(ColumnName = "DataTime", ColumnDescription = "数据时间")]
    public DateTime? DataTime { get; set; }

    /// <summary>
    /// 累计进水
    /// </summary>
    [SugarColumn(ColumnName = "Inflow", ColumnDescription = "累计进水", Length = 8, DecimalDigits = 3)]
    public decimal? Inflow { get; set; }

    /// <summary>
    /// 天进水
    /// </summary>
    [SugarColumn(ColumnName = "DayInflow", ColumnDescription = "天进水", Length = 8, DecimalDigits = 3)]
    public decimal? DayInflow { get; set; }

    /// <summary>
    /// 累计回水
    /// </summary>
    [SugarColumn(ColumnName = "Back", ColumnDescription = "累计回水", Length = 8, DecimalDigits = 3)]
    public decimal? Back { get; set; }

    /// <summary>
    /// 天回水
    /// </summary>
    [SugarColumn(ColumnName = "DayBack", ColumnDescription = "天回水", Length = 8, DecimalDigits = 3)]
    public decimal? DayBack { get; set; }

    /// <summary>
    /// 租户Id
    /// </summary>
    [SugarColumn(ColumnName = "TenantId", ColumnDescription = "租户Id")]
    public long? TenantId { get; set; }

    /// <summary>
    /// 备注信息
    /// </summary>
    [SugarColumn(ColumnName = "Memo", ColumnDescription = "备注信息", Length = 200)]
    public string Memo { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(ColumnDescription = "创建时间", IsOnlyIgnoreUpdate = true)]
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 创建者Id
    /// </summary>
    [SugarColumn(ColumnDescription = "创建者Id", IsOnlyIgnoreUpdate = true)]
    public virtual long? CreateUserId { get; set; } = 1300000000101;

    /// <summary>
    /// 创建者姓名
    /// </summary>
    [SugarColumn(ColumnDescription = "创建者姓名", Length = 64, IsOnlyIgnoreUpdate = true)]
    public virtual string? CreateUserName { get; set; } = "系统管理员";

    /// </summary>
    [SugarColumn(ColumnDescription = "删除标志", Length = 64, IsOnlyIgnoreUpdate = true)]
    public virtual bool IsDelete { get; set; } =  false;

}


